const getHours = () => {
  let message = ''
  const date = new Date()
  const hours = date.getHours()
  if (hours > 5 && hours < 10) {
    message = '早上好'
  } else if (hours >= 10 && hours < 14) {
    message = '中午好'
  } else if (hours >= 14 && hours < 19) {
    message = '下午好'
  } else {
    message = '晚上好'
  }
  return message
}
export default getHours
